package com.ku.boobs;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Developer extends Activity {
	
	Button devGooglePlus;
	Button devTwitter;
	Button devEmail;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        setContentView(R.layout.developer);
        
        devGooglePlus =(Button) findViewById(R.id.devGooglePlus);
        devGooglePlus.setOnClickListener(new OnClickListener (){
            @Override
            public void onClick(View view)
            {
            	String url = "http://plus.google.com/108019745978944993252";
            	Intent i = new Intent(Intent.ACTION_VIEW);
            	i.setData(Uri.parse(url));
            	startActivity(i);
            }
        });
        
        devTwitter =(Button) findViewById(R.id.devTwitter);
        devTwitter.setOnClickListener(new OnClickListener (){
            @Override
            public void onClick(View view)
            {
            	String url = "http://www.twitter.com/dl_evans";
            	Intent i = new Intent(Intent.ACTION_VIEW);
            	i.setData(Uri.parse(url));
            	startActivity(i);
            }
        });
        
        devEmail =(Button) findViewById(R.id.devEmail);
        devEmail.setOnClickListener(new OnClickListener (){
            @Override
            public void onClick(View view)
            {
            	Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
            	emailIntent.setType("text/*");
            	emailIntent.putExtra(Intent.EXTRA_EMAIL,new String[] { "evansdustin08@gmail.com" });
                emailIntent.putExtra(Intent.EXTRA_SUBJECT, "#KUBOOBS");
            	startActivity(emailIntent);
            }
        });
	}
}
